#define _CRT_SECURE_NO_WARNINGS 1

#include"Stack.h"

void test1()
{
	ST ps;
	
	StackInit(&ps);
	StackPush(&ps, 1);
	StackPush(&ps, 2);
	StackPush(&ps, 3);
	StackPush(&ps, 4);
	StackPush(&ps, 5);

	while (!Stackempty(&ps))
	{
		printf("%d ", StackRead(&ps));
		StackPop(&ps);
	}
	printf("\n");
	StackDestroy(&ps);

}

void test2()
{
	char S[3] = "()";
	if (isValid(S))
	{
		printf("yes\n");
	}
	else
	{
		printf("no\n");
	}
}


int main()
{
	test2();
	return 0;
}